home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
015
/
tset.prg
< prev
next >
Wrap
Text File
|
1986-09-24
|
768b
|
38 lines
*PSET -PRG TO SEND CONTROL CODES TO EPSON(or COMPATIBLE) PRINTER
*see Sept 30,1986 PC Magazine for more details
*
*INCOMING PARAMETER USES SPACE AS DELIMITER
*PRINTER MUST BE ON LINE
*EXAMPLE:SET TO COMMPRESSED MODE- DO PSET WITH '15'
*EXAMPLE:RESET TO PICA MODE- DO PSET WITH '18'
*WILL ALSO HANDLE ESCAPE CODES
*
PRIVATE INCOMING,PSET,LOC,SEG
PARAMETER INCOMING
SET CONSOLE OFF
PSET = INCOMING
DO WHILE " "$PSET
LOC=AT(" ",PSET)
SEG="CHR("+SUBS(PSET,1,LOC-1)+")"
SET PRINT ON
?? &SEG
SET PRINT OFF
PSET=SUBST(PSET,LOC+1)
ENDDO
SEG="CHR("+PSET+")"
SET PRINT ON
?? &SEG
SET PRINT OFF
SET CONSOLE ON
RETURN
PRINT OFF
PSET=SUBST(PSET,LOC+1)
ENDDO
SEG="CHR("+PSET+")"
SET PRINT ON
?? &SEG
SET PRINT OFF
SET CONSOLE ON
RETURN